package com.xuan.common.core.constants;

public interface JudgeConstants {


    Integer ERROR_SCORE = 0;

    Integer DEFAULT_SCORE = 100;

    String QUESTION_CODE_DIR = "user-code";

    String UNDERLINE_SEPARATOR = "_";

    String EXEC_JAVA_CLASS_NAME = "Solution.java";

    String EXEC_JAVA_FILE_NAME = "Solution";

    String JAVA_ENV_IMAGE = "openjdk:8-jdk-alpine";

    String JAVA_JUDGE_CONTAIN_NAME = "oj-jdk";

    String DOCKER_USER_CODE_DIR = "/usr/share/java";

    String[] DOCKER_JAVA_FILE_COMPILE_CMD = new String[]{"javac", "/usr/share/java/Solution.java"};

    String[] DOCKER_EXEC_JAVA_CLASS_CMD = new String[]{"java", "-cp", DOCKER_USER_CODE_DIR, EXEC_JAVA_FILE_NAME};

    String DOCKER_CONTAINS_PREFIX = "/";

    String QUESTION_CODE_DIR_POOL = "user-code-pool";
}
